﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm10.aspx.cs" Inherits="nhakhoachauau.WebForm10" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <style media="screen">
        .noPrint
        {
            display: block;
        }
        .yesPrint
        {
            display: block !important;
        }
    </style>
    <style media="print">
        .noPrint
        {
            display: none;
        }
        .yesPrint
        {
            display: block !important;
        }
    </style>
    <script>
        function sonu(strid) {
            var prtcontent = document.getElementById(strid);
            var winprint = window.open('', '', 'left=0, top=0, width=500,height=500,toolbars=0,scrollbars=0,status=0, url=0');
            winprint.document.write("<table  border='1'>  <tr ><th>#</th><th style='width:200px'>Connent</th><th style='width:150px'>Money</th></tr><tr><td>1</td><td>Cạo vội răng</td><td>300,000 VNĐ</td></tr></table>");
            winprint.document.close();

            winprint.print();
            winprint.close();

        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div id="DIVprint">
            <table width="264px" border="1">
            <tr>
                <th>
                    #
                </th>
                <th>
                    Connent
                </th>
                <th>
                    Money
                </th>
            </tr>
            <tr>
                <td>
                    1
                </td>
                 <td>
                    Cạo vội răng
                </td>
                 <td>
                    300,000 VNĐ
                </td>
            </tr>
            </table>
        </div>
        <input type=button onclick="javascript:sonu('DIVprint');"/>
    </form>
</body>
</html>
